package com.finace.money.di.module;

import com.finace.money.data.UploadImageModel;
import com.finace.money.data.http.ApiService;
import com.finace.money.presenter.contract.UploadImageContract;

import dagger.Module;
import dagger.Provides;

/**
 * Created by zhangpeng on 2018/2/1.
 */

@Module
public class UploadImageModule {

    public UploadImageContract.View mView;

    public UploadImageModule(UploadImageContract.View mView) {
        this.mView = mView;
    }

    @Provides
    public UploadImageContract.IUploadImageModel provideModel(ApiService apiService){
        return new UploadImageModel(apiService);
    }

    @Provides
    public UploadImageContract.View provideView(){
        return mView;
    }
}
